package interfaces.subpanel.preprocesamiento.gui;

import interfaces.mainpanel.gui.TesisMainGUI;

import java.awt.BorderLayout;

import javax.swing.JPanel;

import weka.core.Instances;
import weka.core.stemmers.Stemmer;

public class PreprocessingGUI extends JPanel {

	private static final long serialVersionUID = 1L;

	private TesisMainGUI mainGUI;

	private ARFFPanelGUI arffPanelGUI;

	private StopWordsPanelGUI stopWordsPanelGUI;

	public PreprocessingGUI(TesisMainGUI mainGUI) {

		super(new BorderLayout(1, 1));

		this.mainGUI = mainGUI;
		this.arffPanelGUI = new ARFFPanelGUI(this.mainGUI);
		this.stopWordsPanelGUI = new StopWordsPanelGUI(true, true);
		add(this.arffPanelGUI, BorderLayout.CENTER);
		add(this.stopWordsPanelGUI, BorderLayout.WEST);
	}

	public Instances retrieveDataSet() {
		return this.arffPanelGUI.retrieveDataSet();
	}

	public String getStemmerName() {
		return this.arffPanelGUI.getStemmerName();
	}

	public String getTokenizerName() {
		return this.arffPanelGUI.getTokenizerName();
	}

	public TesisMainGUI getMainGUI() {
		return mainGUI;
	}
	
	public Stemmer getSelectedStemmer(){
		return this.arffPanelGUI.getStemmerSelected();
	}
}
